home *** CD-ROM | disk | FTP | other *** search
- Path: lnsnews.lns.cornell.edu!news
- From: nk@lns598.lns.cornell.edu (Nobuhiko Katayama)
- Newsgroups: comp.std.c
- Subject: sizeof(1L) in preprocesor;How to tell sizeof(double)>sizeof(long) ?
- Date: 04 Jan 1996 23:39:39 -0500
- Organization: Wilson Lab, Cornell U., Ithaca, NY 14853
- Sender: nk@lns101.lns.cornell.edu
- Message-ID: <sc3f9vb6gk.fsf@lns101.lns.cornell.edu>
- NNTP-Posting-Host: lns101.lns.cornell.edu
- X-Newsreader: Gnus v5.1
-
- Dear experts,
- I understand that sizeof(double) cannot be used with #if as
- double is a type name. Could you tell me where in the standard it says
- that I cannot use sizeof(1.0) or sizeof(1L)... ? Assiming that I can't
- use sizeof(1.0) < sizeof(1L), is there any portable way to tell whether
- long is longer(shorter) than double in preprocessor stage ?
-
- Thanks in advance,
- Nobu Katayama (Cornell Univ.)
-